using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace OnlineAnadolu
{
    public partial class UrunDetay2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SqlDataSource2.SelectCommand = "SELECT attributes.attributename as Ozellik, attributevalues.value as Deger FROM attributevalues INNER JOIN productattributes ON attributevalues.id = productattributes.avid INNER JOIN attributes ON attributevalues.attributeid = attributes.attributeid WHERE (productattributes.productid = '" + Session["idproduct"].ToString() + "')";
            GridView1.DataBind();
         
        }


        protected void DetailsView1_ItemDeleting(object sender, DetailsViewDeleteEventArgs e)
        {
            Session["us"] = DetailsView1.Rows[0].Cells[1].Text;
            Response.Redirect("ozelmesaj.aspx");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Session["kime"] = DetailsView1.Rows[0].Cells[1].Text;
            Response.Redirect("kullaniciyorumlari.aspx");
        }

    }
}
